#!/usr/bin/env python3

import rospy
from DrEmpower_can.msg import positions_done
# import DrEmpower as dr

def callback(data):
    import DrEmpower as dr
    dr.positions_done(id_num=data.id_num)
    rospy.loginfo("positions_done_node")


def listener():
    rospy.init_node("positions_done", anonymous=True)
    rospy.Subscriber("positions_done", positions_done, callback)
    rospy.spin()


if __name__ == '__main__':
    listener()

